import instance from "@/axios";
// 权限树形列表
export const treeList = ()=>instance.get("/permission/tree")
// 权限列表
export const permissionList = ()=>instance.get("/permission/list")

//添加权限信息
export const addOrUpdatePermission = (permissionForm)=>instance.post("/permission/addOrUpdate",permissionForm)

//根据id 获取权限信息
export  const  getOnePermission = (id)=>instance.get("/permission/getOne/"+id)

//删除权限信息
export const deletePermission = (id) => instance.delete("/permission/delete/"+id)